package com.shopping;

/**
 * @author wdx
 * @desc 超市水果种类以及此水果是否在促销活动中
 *
 * */
public enum FruitType {
    APPLE("apple",10,false,0.8),
    STRAWBERRY("strawberry",10,false,0.0),
    MANGO("mango",10,false,0.0),
    ;

    String fruitName;

    Integer price;

    boolean isPromotion;

    Double promotionPrice;

    FruitType(String fruitName, Integer price,boolean isPromotion,Double promotionPrice) {
        this.fruitName = fruitName;
        this.price = price;
        this.isPromotion=isPromotion;
        this.promotionPrice=promotionPrice;
    }

    public String getFruitName() {
        return fruitName;
    }

    public void setFruitName(String fruitName) {
        this.fruitName = fruitName;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public boolean isPromotion() {
        return isPromotion;
    }

    public void setPromotion(boolean promotion) {
        isPromotion = promotion;
    }

    public Double getPromotionPrice() {
        return promotionPrice;
    }

    public void setPromotionPrice(Double promotionPrice) {
        this.promotionPrice = promotionPrice;
    }
}
